#ifndef PLANE_H
#define PLANE_H
#include <iostream>
#include <GL/glut.h>
#include "tgaload.h"
#include "glm.h"
#include "utils.h"
#include <cmath>

class Plane
{
    public:
        Plane(char * modelPath, char * texturePath, unsigned int numTex);
        virtual ~Plane();
        GLvoid draw();
        GLvoid initTexture(char * texturePath, unsigned int numTex);
        GLvoid turn_left();
        GLvoid turn_right();
        GLvoid turn_up();
        GLvoid turn_down();
        GLvoid acelera();
        GLvoid freia();
    protected:
    private:
        GLfloat director[3];
        GLfloat xpoz, ypoz, zpoz,
                angleX, angleY, angleZ,
                velocity;
        GLuint texture_plane[1];
        GLfloat color[3];
        GLMmodel * model;
        utils * util;
        GLboolean angYflag;
};

#endif // PLANE_H
